package com.reflect4;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.IOException;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private String name;
    private int age;


    public void sleep(){
        System.out.println("睡觉");
    }

    public void eat(String something) throws IOException {
        System.out.println("在吃"+something);
    }
    private void eat(String something,int a){
        System.out.println("在吃"+something);
    }
}
